package com.treasure.domain.domain.entity;

import com.treasure.common.types.InteractionId;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sunhongmin
 * @date 2023/9/6 23:02
 * @description
 */
@Data
@NoArgsConstructor
public class ChatHistoryQuery {
    /**
     * 会话ID
     */
    private InteractionId interactionId;

    /**
     * 会话轮数（默认一轮）
     * 一轮：(提问 - 应答) 为一轮
     */
    private Integer rounds = 1;

    /**
     * 有效时间（毫秒）
     */
    private Long activeTime;

    public ChatHistoryQuery(InteractionId interactionId, Integer rounds) {
        this.interactionId = interactionId;
        this.rounds = rounds;
    }
}
